package database;


import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;


public class SingleEntityManagerFactory {
	private static EntityManagerFactory em;

	private SingleEntityManagerFactory() {}

	public static EntityManagerFactory getInstance()
	{
		if(em == null)
		{
			em = Persistence.createEntityManagerFactory("persistence");
		}
		return em;
	}

}